package com.applink.sell_proof.widget;

import android.content.Context;
import android.graphics.Canvas;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;

public class URLDrawable extends BitmapDrawable {
	// the drawable that you need to set, you could set the initial drawing
	// with the loading image if you need to
	protected Drawable drawable;

	public URLDrawable(Context c) {
		super(c.getResources());
	}

	@Override
	public void draw(Canvas canvas) {
		// override the draw to facilitate refresh function later
		if (drawable != null) {
			drawable.draw(canvas);
		}
	}
}